import cv2
import time



print('加载成功')
# lane_fit_memory
memory = {}

time_tik = 0
# Video input
frame = cv2.imread('road_3.png')

steer = "Can not get steer!"
# Detection Part
# 1: Lane detection
img_result, dist_from_center, curvature, memory, img_area =  detect_line(frame, steer, memory, debug=True)
# 2: ion


# Log Part
# time_tok = time.time()
# time_cost = time_tok - time_tik
# time_tik = time_tok
# print (dist_from_center, curvature, time_cost)
show_img("result", img_result)
# show_img("cap", frame)

cv2.waitKey()

cv2.destroyAllWindows()
